package com.cjc.snackpass.system.controller;

import com.cjc.snackpass.system.entity.SysUser;
import com.cjc.snackpass.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenjuncai
 */
@RestController
@RequestMapping("system")
public class SysUserController {
    @Autowired
    private SysUserService sysUserService;
    @PostMapping("saveUser")
    public boolean saveUser(SysUser user){
        return sysUserService.save(user);
    }
}
